﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VioletDevelopmentLaboratory.Net.Web.Component
{
	public abstract class BoardSubPartBase : UserControl
	{
		private VBoardUserInfo currentUserInfo;
		public VBoardUserInfo CurrentUserInfo { get { return currentUserInfo; } }

		private Boolean currentUserFileDownload;
		public Boolean CurrentUserFileDownload { get { return currentUserFileDownload; } }

		private Board currentBoard;
		public Board CurrentBoard { get { return this.currentBoard; } }

		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			currentUserInfo = (VBoardUserInfo)this.Page.Items["CurrentUserInfo"];
			currentUserFileDownload = (Boolean)this.Page.Items["CurrentUserFileDownload"];
			currentBoard = (Board)this.Page.Items["CurrentBoard"];
		}
	}
}
